    package extremebeerbook.server;

	import com.google.appengine.api.datastore.Key;
//	import com.google.appengine.api.users.User;

//	import java.util.Date;
	import javax.jdo.annotations.IdGeneratorStrategy;
	import javax.jdo.annotations.IdentityType;
	import javax.jdo.annotations.PersistenceCapable;
	import javax.jdo.annotations.Persistent;
	import javax.jdo.annotations.PrimaryKey;

	@PersistenceCapable(identityType = IdentityType.APPLICATION)
	public class Grain {
	    @PrimaryKey
	    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	    private Key key;

	    @Persistent
	    private String name;

	    @Persistent
	    private String type;

	    @Persistent
	    private float color;

	    @Persistent
	    private float potential;

	    public Grain(String name, String type, float color, float potential) {
	        this.name = name;
	        this.type = type;
	        this.color = color;
	        this.potential = potential;
	    }

	    public Key getKey() {
	        return key;
	    }

	    public String getName() {
	        return name;
	    }

	    public String getType() {
	        return type;
	    }

	    public float getColor() {
	        return color;
	    }

	    public float getPotential() {
	        return potential;
	    }

	    public void setName(String name) {
	        this.name = name;
	    }

	    public void setType(String type) {
	        this.type = type;
	    }

	    public void setColor(float color) {
	        this.color = color;
	    }

	    public void setPotential(float potential) {
	        this.potential = potential;
	    }
	}
